<!DOCTYPE html>
<html>
<head>
	<title>CMS</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Cache-Control" content="No-Cache" />
	<meta http-equiv="Pragma" content="No-Cache" />
	<meta http-equiv="Expires" content="-1" />

	<link type="image/ico" rel="shortcut icon" href="<?php echo PUBLIC_URL; ?>images/favicon.ico" />
	<link type="text/css" rel="stylesheet" href="<?php echo PUBLIC_URL; ?>ext/bootstrap/css/bootstrap.min.css" />
	<link type="text/css" rel="stylesheet" href="<?php echo PUBLIC_URL; ?>styles/styles.css" />
	<link type="text/css" rel="stylesheet" href="<?php echo PUBLIC_URL; ?>styles/schema.css" />
<?php if (Config::get('rtl', 'i18n')) { ?>
	<link type="text/css" rel="stylesheet" href="<?php echo PUBLIC_URL; ?>styles/rtl.css" />
<?php } ?>

	<script type="text/javascript" src="<?php echo PUBLIC_URL; ?>scripts/scripts.js"></script>
	<script type="text/javascript" src="<?php echo PUBLIC_URL; ?>ext/jquery/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="<?php echo PUBLIC_URL; ?>ext/tiny_mce/jquery.tinymce.js"></script>
	<script type="text/javascript" src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap.min.js"></script>

	<script type="text/javascript">
	Registry.base_url = '<?php echo BASE_URL; ?>';
	Registry.public_url = '<?php echo PUBLIC_URL; ?>';
	Registry.upload_url = '<?php echo UPLOAD_URL; ?>';
	Registry.current_path = '<?php echo Router::getCurrentPath(); ?>';
	Registry.language_rtl = <?php echo (Config::get('rtl', 'i18n') ? 'true' : 'false'); ?>;
	</script>
</head>
<body>

<div id="wrapper">		
	<div id="header">
		<?php
		echo View::factory('other/header')->render();
		?>
	</div>

	<div id="content">
		<?php echo $content; ?>
	</div>

	<div id="footer">
		<?php
		echo View::factory('other/footer')->render();
		?>
	</div>
</div>

    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-transition.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-alert.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-modal.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-dropdown.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-scrollspy.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-tab.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-tooltip.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-popover.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-button.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-collapse.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-carousel.js"></script>
    <script src="<?php echo PUBLIC_URL; ?>ext/bootstrap/js/bootstrap-typeahead.js"></script>
</body>
</html>